/*
 * UdpSessionManager.h
 *
 *  Created on: 27/08/2011
 *      Author: george
 */

#ifndef UDPSESSIONMANAGER_H_
#define UDPSESSIONMANAGER_H_
#include "udpsession.h"
#include <vector>

class UdpSessionManager {
public:
	UdpSessionManager();

	std::vector <UdpSession*> session;

	bool add(ip_hdr_t* ip,  udp_hdr_t* udp);
	unsigned getSession(in_addr src, in_addr dst, u_int16_t src_port, u_int16_t dst_port, u_int8_t protocol);
	~UdpSessionManager();
};

#endif /* UDPSESSIONMANAGER_H_ */
